<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${mapper.packagePath}.${mapper.className}">

    <resultMap id="${entity.className}ResultMap" type="${entity.packagePath}.${entity.className}">
        <#list fieldInfoList as field>
        <#if field.pk>
        <id column="${field.columnName}" property="${field.fieldName}"/>
        <#else>
        <result column="${field.columnName}" property="${field.fieldName}"<#if field.enumDict??> typeHandler="com.lj.mp.handlers.CommonEnumTypeHandler"</#if>/>
        </#if>
        </#list>
    </resultMap>
</mapper>
